<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">

    <title>Learn Laravel 5</title>

    <link href="//cdn.bootcss.com/bootstrap/3.2.0/css/bootstrap.min.css" rel="stylesheet">
    <script src="//cdn.bootcss.com/jquery/1.11.1/jquery.min.js"></script>
    <script src="//cdn.bootcss.com/bootstrap/3.2.0/js/bootstrap.min.js"></script>
</head>

    <div id="title" style="text-align: center;">
        <h1>Learn Laravel 5</h1>
        <div style="padding: 5px; font-size: 16px;">Learn Laravel 5</div>  
    </div>
    <hr>
    <div id="content">

        <div class="container">
                <div class="row">
                    <div class="col-md-10 col-md-offset-1">
                        <div class="panel panel-default">
                            <div class="panel-heading">Confirm You Message</div>
                            <div class="panel-body">

                                @if (count($errors) > 0)
                                    <div class="alert alert-danger">
                                        <strong>新增失败</strong> 输入不符合要求<br><br>
                                        {!! implode('<br>', $errors->all()) !!}
                                    </div>
                                @endif

                                <form action="{{ url('admin/article') }}" method="POST">
                                    {!! csrf_field() !!}
                                    <label>发送者的邮箱</label>
                                    <input type="email" name="send_mail" class="form-control" >
                                    <br>
                                    <label>发送者的邮箱密码</label>
                                    <input type="password" name="send_password" class="form-control" >
                                    <br>
                                    <label>发送者的名字</label>
                                    <input type="text" name="send_name" class="form-control" >
                                    <br>
                                    <label>管理员的邮箱(接收邮件)</label>
                                    <input type="email" name="receive_eamil" class="form-control">
                                    <br>
                                    <button class="btn btn-lg btn-info">Submit</button>
                                </form>
                            </div>
                        </div>
                    </div>
                </div>    
            </div>

    </div>

</body>
</html>